#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy jar
echo "begin copy castle-fortress-admin "
cp ../castle-fortress-admin/target/castle-fortress-admin.jar ./fortress/admin/jar

echo "begin copy castle-fortress-develop "
cp ../castle-fortress-develop/target/castle-fortress-develop.jar ./fortress/develop/jar

# copy 图片验证码
echo "begin copy imageCaptcha "
cp  -r ../doc/captcha/* ./fortress/admin/imageCaptcha/

# copy cms 模板
echo "begin copy cmsTemplates "
cp  -r ../doc/cmsTemplates/* ./fortress/admin/cmsTemplates/